package springboot.springboot06_ssmp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 个人日记
 * </p>
 *
 * @author daiqiang
 * @since 2024-02-23
 */

@Data
@TableName("personalDiaries")
public class PersonalDiaries implements Serializable {

    private static final long serialVersionUID = 1L;

    @Getter
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @Getter
    private String userId;

    /**
     * 标题
     */
    @Getter
    private String title;

    /**
     * 内容
     */
    @Getter
    private String content;

    /**
     * 创建日期
     */
    private LocalDate  createDate;

    /**
     * 标签
     */
    @Getter
    private String tags;

    /**
     * 心情
     */
    @Getter
    private String mood;

    /**
     * 修改日期
     */
    private LocalDate updateDate;

    /**
     * 是否公开
     */
    private String majorEvent;


}
